Skip to main content

故障排查 failed to get all reachable pages

从集群中删除故障节点(正常节点上操作)
# 列出etcd所有节点
etcdctl member list

# 删除故障节点
etcdctl member remove c13845537406e22f
二、修复故障节点(故障节点上操作)
# 修改配置
sed -i "s#initial-cluster-state: ‘new‘#initial-cluster-state: ‘existing‘" /etc/etcd/etcd.config.yml

# 清理节点数据(下面为默认路径,请根据你的设置修改)
rm -rf /var/lib/etcd/member
三、重新添加节点(正常节点上操作)
etcdctl member add K8s-2 https://192.168.216.242:2380
四、重启故障节点(故障节点上操作)
systemctl restart etcd